CC = gcc
CPP = g++
RM = rm

SRC_PATH := .

TARGET := reorder_csr

CFLAGS += $(foreach dir, $(INCLUDE_PATH), -I$(dir))
# SRCS += $(wildcard $(SRC_PATH)/*.cpp)
SRCS += ./reorder_csr.cpp
# OBJS := $(notdir $(SRCS:.cpp=.o))
OBJS := ./reorder_csr.o

build:
	$(CPP) -c $(CFLAGS) $(SRCS)
	$(CPP) $(CFLAGS) -o $(TARGET) $(OBJS)
	$(RM) $(OBJS)

runtime_overhead:
	$(CPP) -c $(CFLAGS) $(SRC_PATH)/runtime_overhead.cpp 
	$(CPP) $(CFLAGS) -o runtime_overhead runtime_overhead.o
	rm runtime_overhead.o

clean:
	$(RM) $(OBJS) $(TARGET)

run:
	./$(TARGET) ../../data/edge_off_facebook.txt ../../data/edge_list_facebook.txt ../../data/edge_list_facebook_reorder_64bram_32pipe.txt 64 32
